Skip to content

fixed spawner runaway (exponential) (very scary)#139

Closed
sh0inx wants to merge 376 commits intomasterfrom
spawner-overhaul-(again)
Closed

fixed spawner runaway (exponential) (very scary)#139
sh0inx wants to merge 376 commits intomasterfrom
spawner-overhaul-(again)

Conversation

@sh0inx
Copy link
Copy Markdown
Contributor

@sh0inx sh0inx commented Dec 29, 2024

No description provided.

renovate bot and others added 25 commits October 21, 2024 15:24
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Comment on lines +33 to 34
if(spawner.getMaxSpawnDelay() != data.spawnDelay) { spawner.setMaxSpawnDelay(data.spawnDelay); }
spawner.update(true);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if its not active, do we need to set it back to the default?

What is the default?

spawner.setSpawnCount((spawner.getSpawnCount() * data.spawnMultiplier) + data.spawnCount);
if(spawner.getMaxSpawnDelay() != data.spawnDelay) { spawner.setMaxSpawnDelay(data.spawnDelay); }
spawner.update(true);
spawner.setSpawnCount(spawnCount);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work?

might be worth adding a comment explaining this.

And do we need to do a final .update for when its no longer active?

@sh0inx
Copy link
Copy Markdown
Contributor Author

sh0inx commented Apr 5, 2026

needs to be re-opened w/ new master history

@sh0inx sh0inx closed this Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants